package com.atguigu.cloud.mapper;

import com.atguigu.cloud.entities.Storage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author yangnan
* @description 针对表【t_storage】的数据库操作Mapper
* @createDate 2025-03-05 20:25:30
* @Entity com.atguigu.cloud.entities.Storage
*/
@Mapper
public interface StorageMapper extends BaseMapper<Storage> {
    /**
     * 扣减库存
     */
    void decrease(@Param("productId") Long productId, @Param("count") Integer count);

}




